package myky.com.doctorapp.model

import com.xiangyao.train.utils.RxScedulerHelper
import io.reactivex.Observable
import myky.com.doctorapp.api.ApiManager
import myky.com.doctorapp.entity.LogoutEntity
import myky.com.doctorapp.base.BaseEntity
import myky.com.doctorapp.contract.SettingActivityContract

/**
 * Description:
 *
 * @author wuyangwuyang
 * Created by 2019/1/24 on 14:47
 */
class SettingActivityModel : SettingActivityContract.Model {

    override fun logout(): Observable<BaseEntity<LogoutEntity.PayLoadBean>> {
        return ApiManager.getApistore().logoutApi().compose(RxScedulerHelper.io_main())
    }
}
